package com.ymx.quanjuhe.bean;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class VisitLogExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public VisitLogExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andVisitIdIsNull() {
            addCriterion("visit_id is null");
            return (Criteria) this;
        }

        public Criteria andVisitIdIsNotNull() {
            addCriterion("visit_id is not null");
            return (Criteria) this;
        }

        public Criteria andVisitIdEqualTo(Integer value) {
            addCriterion("visit_id =", value, "visitId");
            return (Criteria) this;
        }

        public Criteria andVisitIdNotEqualTo(Integer value) {
            addCriterion("visit_id <>", value, "visitId");
            return (Criteria) this;
        }

        public Criteria andVisitIdGreaterThan(Integer value) {
            addCriterion("visit_id >", value, "visitId");
            return (Criteria) this;
        }

        public Criteria andVisitIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("visit_id >=", value, "visitId");
            return (Criteria) this;
        }

        public Criteria andVisitIdLessThan(Integer value) {
            addCriterion("visit_id <", value, "visitId");
            return (Criteria) this;
        }

        public Criteria andVisitIdLessThanOrEqualTo(Integer value) {
            addCriterion("visit_id <=", value, "visitId");
            return (Criteria) this;
        }

        public Criteria andVisitIdIn(List<Integer> values) {
            addCriterion("visit_id in", values, "visitId");
            return (Criteria) this;
        }

        public Criteria andVisitIdNotIn(List<Integer> values) {
            addCriterion("visit_id not in", values, "visitId");
            return (Criteria) this;
        }

        public Criteria andVisitIdBetween(Integer value1, Integer value2) {
            addCriterion("visit_id between", value1, value2, "visitId");
            return (Criteria) this;
        }

        public Criteria andVisitIdNotBetween(Integer value1, Integer value2) {
            addCriterion("visit_id not between", value1, value2, "visitId");
            return (Criteria) this;
        }

        public Criteria andVisitIpIsNull() {
            addCriterion("visit_ip is null");
            return (Criteria) this;
        }

        public Criteria andVisitIpIsNotNull() {
            addCriterion("visit_ip is not null");
            return (Criteria) this;
        }

        public Criteria andVisitIpEqualTo(String value) {
            addCriterion("visit_ip =", value, "visitIp");
            return (Criteria) this;
        }

        public Criteria andVisitIpNotEqualTo(String value) {
            addCriterion("visit_ip <>", value, "visitIp");
            return (Criteria) this;
        }

        public Criteria andVisitIpGreaterThan(String value) {
            addCriterion("visit_ip >", value, "visitIp");
            return (Criteria) this;
        }

        public Criteria andVisitIpGreaterThanOrEqualTo(String value) {
            addCriterion("visit_ip >=", value, "visitIp");
            return (Criteria) this;
        }

        public Criteria andVisitIpLessThan(String value) {
            addCriterion("visit_ip <", value, "visitIp");
            return (Criteria) this;
        }

        public Criteria andVisitIpLessThanOrEqualTo(String value) {
            addCriterion("visit_ip <=", value, "visitIp");
            return (Criteria) this;
        }

        public Criteria andVisitIpLike(String value) {
            addCriterion("visit_ip like", value, "visitIp");
            return (Criteria) this;
        }

        public Criteria andVisitIpNotLike(String value) {
            addCriterion("visit_ip not like", value, "visitIp");
            return (Criteria) this;
        }

        public Criteria andVisitIpIn(List<String> values) {
            addCriterion("visit_ip in", values, "visitIp");
            return (Criteria) this;
        }

        public Criteria andVisitIpNotIn(List<String> values) {
            addCriterion("visit_ip not in", values, "visitIp");
            return (Criteria) this;
        }

        public Criteria andVisitIpBetween(String value1, String value2) {
            addCriterion("visit_ip between", value1, value2, "visitIp");
            return (Criteria) this;
        }

        public Criteria andVisitIpNotBetween(String value1, String value2) {
            addCriterion("visit_ip not between", value1, value2, "visitIp");
            return (Criteria) this;
        }

        public Criteria andVisitTimeIsNull() {
            addCriterion("visit_time is null");
            return (Criteria) this;
        }

        public Criteria andVisitTimeIsNotNull() {
            addCriterion("visit_time is not null");
            return (Criteria) this;
        }

        public Criteria andVisitTimeEqualTo(Date value) {
            addCriterion("visit_time =", value, "visitTime");
            return (Criteria) this;
        }

        public Criteria andVisitTimeNotEqualTo(Date value) {
            addCriterion("visit_time <>", value, "visitTime");
            return (Criteria) this;
        }

        public Criteria andVisitTimeGreaterThan(Date value) {
            addCriterion("visit_time >", value, "visitTime");
            return (Criteria) this;
        }

        public Criteria andVisitTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("visit_time >=", value, "visitTime");
            return (Criteria) this;
        }

        public Criteria andVisitTimeLessThan(Date value) {
            addCriterion("visit_time <", value, "visitTime");
            return (Criteria) this;
        }

        public Criteria andVisitTimeLessThanOrEqualTo(Date value) {
            addCriterion("visit_time <=", value, "visitTime");
            return (Criteria) this;
        }

        public Criteria andVisitTimeIn(List<Date> values) {
            addCriterion("visit_time in", values, "visitTime");
            return (Criteria) this;
        }

        public Criteria andVisitTimeNotIn(List<Date> values) {
            addCriterion("visit_time not in", values, "visitTime");
            return (Criteria) this;
        }

        public Criteria andVisitTimeBetween(Date value1, Date value2) {
            addCriterion("visit_time between", value1, value2, "visitTime");
            return (Criteria) this;
        }

        public Criteria andVisitTimeNotBetween(Date value1, Date value2) {
            addCriterion("visit_time not between", value1, value2, "visitTime");
            return (Criteria) this;
        }

        public Criteria andVisitAddressIsNull() {
            addCriterion("visit_address is null");
            return (Criteria) this;
        }

        public Criteria andVisitAddressIsNotNull() {
            addCriterion("visit_address is not null");
            return (Criteria) this;
        }

        public Criteria andVisitAddressEqualTo(String value) {
            addCriterion("visit_address =", value, "visitAddress");
            return (Criteria) this;
        }

        public Criteria andVisitAddressNotEqualTo(String value) {
            addCriterion("visit_address <>", value, "visitAddress");
            return (Criteria) this;
        }

        public Criteria andVisitAddressGreaterThan(String value) {
            addCriterion("visit_address >", value, "visitAddress");
            return (Criteria) this;
        }

        public Criteria andVisitAddressGreaterThanOrEqualTo(String value) {
            addCriterion("visit_address >=", value, "visitAddress");
            return (Criteria) this;
        }

        public Criteria andVisitAddressLessThan(String value) {
            addCriterion("visit_address <", value, "visitAddress");
            return (Criteria) this;
        }

        public Criteria andVisitAddressLessThanOrEqualTo(String value) {
            addCriterion("visit_address <=", value, "visitAddress");
            return (Criteria) this;
        }

        public Criteria andVisitAddressLike(String value) {
            addCriterion("visit_address like", value, "visitAddress");
            return (Criteria) this;
        }

        public Criteria andVisitAddressNotLike(String value) {
            addCriterion("visit_address not like", value, "visitAddress");
            return (Criteria) this;
        }

        public Criteria andVisitAddressIn(List<String> values) {
            addCriterion("visit_address in", values, "visitAddress");
            return (Criteria) this;
        }

        public Criteria andVisitAddressNotIn(List<String> values) {
            addCriterion("visit_address not in", values, "visitAddress");
            return (Criteria) this;
        }

        public Criteria andVisitAddressBetween(String value1, String value2) {
            addCriterion("visit_address between", value1, value2, "visitAddress");
            return (Criteria) this;
        }

        public Criteria andVisitAddressNotBetween(String value1, String value2) {
            addCriterion("visit_address not between", value1, value2, "visitAddress");
            return (Criteria) this;
        }

        public Criteria andVisitBrowserIsNull() {
            addCriterion("visit_browser is null");
            return (Criteria) this;
        }

        public Criteria andVisitBrowserIsNotNull() {
            addCriterion("visit_browser is not null");
            return (Criteria) this;
        }

        public Criteria andVisitBrowserEqualTo(String value) {
            addCriterion("visit_browser =", value, "visitBrowser");
            return (Criteria) this;
        }

        public Criteria andVisitBrowserNotEqualTo(String value) {
            addCriterion("visit_browser <>", value, "visitBrowser");
            return (Criteria) this;
        }

        public Criteria andVisitBrowserGreaterThan(String value) {
            addCriterion("visit_browser >", value, "visitBrowser");
            return (Criteria) this;
        }

        public Criteria andVisitBrowserGreaterThanOrEqualTo(String value) {
            addCriterion("visit_browser >=", value, "visitBrowser");
            return (Criteria) this;
        }

        public Criteria andVisitBrowserLessThan(String value) {
            addCriterion("visit_browser <", value, "visitBrowser");
            return (Criteria) this;
        }

        public Criteria andVisitBrowserLessThanOrEqualTo(String value) {
            addCriterion("visit_browser <=", value, "visitBrowser");
            return (Criteria) this;
        }

        public Criteria andVisitBrowserLike(String value) {
            addCriterion("visit_browser like", value, "visitBrowser");
            return (Criteria) this;
        }

        public Criteria andVisitBrowserNotLike(String value) {
            addCriterion("visit_browser not like", value, "visitBrowser");
            return (Criteria) this;
        }

        public Criteria andVisitBrowserIn(List<String> values) {
            addCriterion("visit_browser in", values, "visitBrowser");
            return (Criteria) this;
        }

        public Criteria andVisitBrowserNotIn(List<String> values) {
            addCriterion("visit_browser not in", values, "visitBrowser");
            return (Criteria) this;
        }

        public Criteria andVisitBrowserBetween(String value1, String value2) {
            addCriterion("visit_browser between", value1, value2, "visitBrowser");
            return (Criteria) this;
        }

        public Criteria andVisitBrowserNotBetween(String value1, String value2) {
            addCriterion("visit_browser not between", value1, value2, "visitBrowser");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}